export interface RouteItem {
	menuname: Array<string>
	asdefault?: boolean // 默认显示
	path?: string
	type?: boolean
	component?: string | (() => any)
	isTabMenu?: boolean
	tabTitle?: string
}

export type RoutesConfig = RouteItem[]
const config: RoutesConfig = [
	{
		menuname: ['运营中心', '供应商管理', '供应商准入'],
		asdefault: true,
		path: '/supplier/admittance',
		component: '../pages/supplier/admittance/index.tsx',
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商准入'],
		path: '/supplier/admittance/add',
		tabTitle: '新增准入',
		asdefault: true,
		component: '../pages/supplier/admittance/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商准入'],
		path: '/supplier/admittance/edit',
		tabTitle: '供应商准入编辑',
		asdefault: true,
		component: '../pages/supplier/admittance/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商准入'],
		path: '/supplier/admittance/view',
		tabTitle: '准入详情',
		asdefault: true,
		component: '../pages/supplier/admittance/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商准入'],
		path: '/supplier/admittance/process',
		tabTitle: '准入审核',
		asdefault: true,
		component: '../pages/supplier/admittance/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商档案'],
		asdefault: true,
		path: '/supplier/archives',
		component: '../pages/supplier/archives/index.tsx',
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商档案'],
		path: '/supplier/archives/enable',
		tabTitle: '供应商启用审批',
		asdefault: true,
		component: '../pages/supplier/archives/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商档案'],
		path: '/supplier/archives/disable',
		tabTitle: '供应商禁用审批',
		asdefault: true,
		component: '../pages/supplier/archives/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商档案'],
		path: '/supplier/archives/examine',
		tabTitle: '供应商档案审批',
		asdefault: true,
		component: '../pages/supplier/archives/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商档案'],
		path: '/supplier/archives/details',
		tabTitle: '供应商档案详情',
		asdefault: true,
		component: '../pages/supplier/archives/child/details/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商招投标'],
		asdefault: true,
		path: '/supplier/bidding',
		component: '../pages/supplier/bidding/index.tsx',
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商招投标'],
		path: '/supplier/bidding/add',
		tabTitle: '供应商招投标新增',
		asdefault: true,
		component: '../pages/supplier/bidding/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商招投标'],
		path: '/supplier/bidding/edit',
		tabTitle: '供应商招投标更新',
		asdefault: true,
		component: '../pages/supplier/bidding/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商招投标'],
		path: '/supplier/bidding/view',
		tabTitle: '供应商招投标详情',
		asdefault: true,
		component: '../pages/supplier/bidding/child/add/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商评级'],
		asdefault: true,
		path: '/supplier/grade',
		component: '../pages/supplier/grade/index.tsx',
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商评级'],
		path: '/supplier/grades/edit',
		tabTitle: '供应商评级编辑',
		asdefault: true,
		component: '../pages/supplier/grade/child/edit/index.tsx',
		type: true,
	},
	{
		menuname: ['运营中心', '供应商管理', '供应商评级'],
		path: '/supplier/grades/details',
		tabTitle: '供应商评级详情',
		asdefault: true,
		component: '../pages/supplier/grade/child/details/index.tsx',
		type: true,
	},
]

export default config
